using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using CoreData;
using Services;
using Helper;
namespace ActionServices
{

    public interface IusersActionService
    {
        long Save(object _model, out string error);
        CoreData.users GetByID(long _id);
        IList<CoreData.users> GetList();    
        bool Delete(object _model);
        bool Login(string username, string password, out IList<vwusers> data);
        void Logout();
    }

    public partial class usersActionService:IusersActionService
    {
       usersService Service;

       public usersActionService()
       {
           Service = new usersService();
       }

       #region Main Method

       public virtual long Save(object _model, out string error)
       {
           return Service.Save(_model, out error);
       }

       public virtual CoreData.users GetByID(long _id)
       {
           return Service.GetByID(_id);
       }

       public virtual IList<CoreData.users> GetList()
       {
           return Service.GetList();
       }
    

       public virtual bool Delete(object _model)
       {
           return Service.Delete(_model);
       }

       #endregion


        #region Other Method

        public virtual bool Login(string username, string password, out IList<vwusers> data)
        {
            return Service.Login(username, password,out data);
        }


        public virtual void Logout()
        {
            Service.Logout();
        }
        #endregion

    }
         
}
